import request from '@/utils/request'

// 下载文件
export function commonDownload (query) {
    return request({
        url: '/common/download',
        method: 'get',
        params: query
    })
}

// 下载本地资源文件
export function commonDownloadResource (query) {
    return request({
        url: '/common/download/resource',
        method: 'get',
        params: query
    })
}

// 编辑资料
export function commonUpload (data) {
    return request({
        url: '/common/upload',
        method: 'post',
        data: data
    })
}

// 上传多个文件
export function commonUploads (data) {
    return request({
        url: '/common/uploads',
        method: 'post',
        data: data
    })
}
